/**
 * @description 获取当前状态栏高度
 */
export default function useStatusBarHeight() {
  const statusBarHeight = ref(0)

  onMounted(() => {
    statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight
      ? uni.getSystemInfoSync().statusBarHeight!
      : 0
  })

  return statusBarHeight
}
